//package com.zmn.plat.admin.api.area;
//
//import com.alibaba.dubbo.config.annotation.Reference;
//import com.zmn.common.dto.VtDTO;
//import com.zmn.common.dto2.ResponseDTO;
//import com.zmn.plat.admin.controller.PlatBaseController;
//import com.zmn.plat.dubbo.interfaces.area.BaseAreaListRemoteService;
//import com.zmn.plat.dubbo.utils.DubboConsts;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.ResponseBody;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.util.List;
//
///**
// * 省市区县API
// *
// * @uthor heguanghua
// * @since 2019/10/16 16:35
// */
//@Controller
//@RequestMapping("/api/area/")
//public class ApiAreaListController extends PlatBaseController {
//
//    @Reference(version = DubboConsts.INTERFACE_VERSION, check = false)
//    private BaseAreaListRemoteService areaRemoteService;
//
//
//    /**
//     * 取得下级区域列表
//     *
//     * @param request
//     * @param response
//     * @param parentId 上级区域Id，1表示返回省份列表
//     */
//    @RequestMapping(value = "listChilds")
//    @ResponseBody
//    public ResponseDTO<List<VtDTO>> listChilds(HttpServletRequest request, HttpServletResponse response,
//                                               @RequestParam(value = "parentId", defaultValue = "1") Integer parentId,
//                                               @RequestParam(value = "type", defaultValue = "1") Integer type) {
//
//        return areaRemoteService.listAreaVtByParentId(parentId, type);
//    }
//}
